<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>其他监理工作--监理周报form</title>

    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }

    .popUp {
        width: 90%;
    }

</style>

<body>
<div class="windows">
    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">监理周报</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR016</span>
            <span class="fr">编号：ZDBG-${orderCode}</span>
        </div>
        <div class="popUpBox book">
            <form action="" class="layui-form addform">
                <div class="popUpBox">
                    <table>
                        <tr>
                            <td style="border: 1px solid #CCCCCC;width: 15%;">工程名称</td>
                            <td style="border: 1px solid #CCCCCC;width: 35%;">
                                <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                                <input type="hidden" name="fileInd" value="${ind}">
                                <input type="hidden" name="spfStaid" value="${spf_staid}">
                                <input type="hidden" name="spfMilid" value="${spf_milid}">
                                <input type="hidden" name="projectName" value="${pdto.projectName}">
                                <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                                <input type="hidden" name="bfcId" value="38">
                                <input type="hidden" name="orderCode" value="${orderCode}">
                                <input type="hidden" name="fbCode" value="${fbCode}">
                                <input type="hidden" name="pcId" value="${pcId}">
                                <input type="hidden" name="wjNum" value="11">
                                <input type="text" name="spfF1" id="spfF1" value="${pdto.projectName}"
                                       lay-verify="spfF1"
                                       style="width: 100%;">
                            </td>
                            <td  style="width: 10%;border: 1px solid #CCCCCC;">日期</td>
                            <td style="width: 40%;border: 1px solid #CCCCCC;">
                                <input type="text" name="spfF11" id="spfF11" placeholder="开始时间"   autocomplete="off" vtext="开始时间不能为空"
                                       lay-verify="spfF11"
                                       style="width: 48%;">
                                <input type="text" name="spfF12" id="spfF12"   placeholder="结束时间"  autocomplete="off"  vtext="结束时间不能为空"
                                       lay-verify="spfF12"
                                       style="width: 48%;">
                            </td>
                        </tr>
                        <tr>
                            <td>业主单位</td>
                            <td colspan="3"><input type="text" name="spfF2" lay-verify="spfF2"
                                                   value="${pdto.owerCompany}"></td>

                        </tr>
                        <tr>
                            <td>监理单位</td>
                            <td colspan="3"><input type="text" name="spfF3" lay-verify="spfF3"
                                                   value="${pdto.supervisorCompanyName}"></td>
                        </tr>
                        <tr>
                            <td>承建单位</td>
                            <td colspan="3">
                                <input type="text" name="spfF4" lay-verify="spfF4" value="${cj}">
                            </td>

                        </tr>
                        <tr>
                            <td>一、工程进展与进度情况</td>
                            <td colspan="3">
                                <textarea name="spfF5" lay-verify="spfF5"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>二、监理工作情况</td>
                            <td colspan="3">
                                <textarea name="spfF6" lay-verify="spfF6">1、监理日常工作，协调、督促等
2、检查、验货工作
3、往来函件的处理包含变更情况、工作联系单等文档处理</textarea>

                            </td>
                        </tr>
                        <tr>
                            <td>三、监理工作完成情况</td>
                            <td colspan="3">
                                <textarea name="spfF7" lay-verify="spfF7"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>四、遗留问题及解决</td>
                            <td colspan="3">
                                <textarea name="spfF8" lay-verify="spfF8"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>五、其他</td>
                            <td colspan="3">
                                <textarea name="spfF9" lay-verify="spfF9">监理范围之外但是与本项目有关的事项。</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>六、下周工作计划</td>
                            <td colspan="3">
                                <input type="text" name="spfF13" id="spfF13" placeholder="开始时间"  autocomplete="off"  vtext="下周工作计划开始时间不能为空"
                                       lay-verify="spfF13"
                                       style="width: 30%;">
                                <input type="text" name="spfF14" id="spfF14"   placeholder="结束时间"  autocomplete="off"  vtext="下周工作计划结束时间不能为空"
                                       lay-verify="spfF14"
                                       style="width: 30%;">
                                <textarea name="spfF10" lay-verify="spfF10"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>


<script>
    var layer;
    var form;
    var laydate;
    layui.use(['form', 'laydate', 'layer'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        // 日期
        laydate.render({
            elem: '#spfF11',
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        laydate.render({
            elem: '#spfF12',
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        laydate.render({
            elem: '#spfF13',
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        laydate.render({
            elem: '#spfF14',
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });

        // 表单校验
        //$('form').initVerify(form);
        //监听提交
        form.on('submit(submit)', function (data) {
            layerAjax('/supervisor/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/sys/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
                console.log(d);
            });
            return false;

        });

        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        form.render();


    });

</script>


<!-- 底部结束 -->
</body>
</html>
